<?php


namespace App\Entity\Member;


use App\Entity\BaseEntity;

/**
 * Class TaskDailyDto
 * @package App\Entity\Member
 * @property int $num
 * @property int $seconds
 * @property int $stopNum
 * @property int $calorie
 * @property int $mode
 */
class TaskDailyDto extends BaseEntity
{
    public function rules(): array
    {
        return [
            'num' => 'required',
            'seconds' => 'required',
            'calorie' => 'required',
        ];
    }

    public function messages(): array
    {
        return [
            'num.required' => '参数不全',
            'seconds.required' => '参数不全',
            'calorie.required' => '参数不全',
        ];
    }
}
